package com.squid.dataCenter.convertor;


import com.squid.base.common.convertor.BaseConverter;
import com.squid.dataCenter.model.entity.DataDictionaryParentEntity;
import com.squid.dataCenter.model.req.datadictionaryparent.DataDictionaryParentInsertReq;
import com.squid.dataCenter.model.req.datadictionaryparent.DataDictionaryParentUpdateReq;
import com.squid.dataCenter.model.resp.datadictionaryparent.DataDictionaryParentResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Description
 *
 * @author jinhang
 * @since 2024-2-7
 **/
@Mapper
public interface DataDictionaryParentEntityConvertor extends BaseConverter<DataDictionaryParentEntity, DataDictionaryParentResp> {
    DataDictionaryParentEntityConvertor INSTANCE = Mappers.getMapper(DataDictionaryParentEntityConvertor.class);

    DataDictionaryParentEntity insertTo(DataDictionaryParentInsertReq req);

    DataDictionaryParentEntity updateTo(DataDictionaryParentUpdateReq req);
}
